SVM: clean up __get_instruction_length_from_list()
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 6 May 2008 12:32:18 +0000 (13:32 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 6 May 2008 12:32:18 +0000 (13:32 +0100)
commitea1c7a7225787dcda405a1a75a1e982624f1ef1a
tree812654d56d812df6ad3ed8e000bc31f8792ab196
parent7fd7bda80c5acc652c178e99f528b97a8e51dece
SVM: clean up __get_instruction_length_from_list()

Remove unused arguments, fix its behaviour near page boundaries,
inject appropriate pagefaults, and inject #GP if the instruction is
not decodable or %eip is not pointing to valid RAM.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/svm/emulate.c
xen/arch/x86/hvm/svm/svm.c
xen/include/asm-x86/hvm/svm/emulate.h